package org.zpmis.common.enums;

public enum SequenceEnum {

    /**
     * 序列类型  需要添加类型的时候 必须在数据库字典表中同步新增对应的 序列编号规则和对应的前缀,否则按照默认的处理
     */
    PROJECT("project","项目编号"),
    ORDER("order","订单编号"),
    ORDER_DETAIL("order_detail","订单明细编号"),
    CONTRACT("contract","合同编号"),
    BILL("bill","账单编号"),
    PURCHASE("purchase","采购单编号"),
    /**
     * 序列清零规则
     */
    YEAR_KEY("1","按年清零"),
    MONTH_KEY("2","按月清零"),
    ;

    private String code;
    private String message;

    SequenceEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String code() {
        return this.code;
    }


    public String message() {
        return this.message;
    }
}
